package com.example.policymode3;

import com.example.policymode3.factory.Discount;

/**
 * 假日折扣
 * 需要大于100
 * @author zhang
 */
public class HolidayDiscount implements Discount {
    @Override
    public int calculate(int money) {
        if (money > 100){
            return money - 10;
        }
        return money;
    }
}